package com.dlc.shop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dlc.shop.bean.model.CompanyAuditing;
import com.dlc.shop.bean.param.CompanyInfoAuditParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author chiley
 * @date 2022/9/21 15:01
 */
public interface CompanyAuditingMapper extends BaseMapper<CompanyAuditing> {

    /**
     * 获取待审核的工商信息审核列表
     *
     * @param page  分页参数
     * @param auditParam 审核搜索参数
     * @return 店铺审核信息列表
     */
    IPage<CompanyAuditing> page(@Param("page") Page<CompanyAuditing> page, @Param("auditParam") CompanyInfoAuditParam auditParam);

    /**
     * 获取需要审核驳回的工商申请
     * @return
     */
    List<CompanyAuditing> getNeedAuditList();

}
